import Vue from 'vue';
import Loading from './index.vue';
const LoadingConstructor = Vue.extend(Loading);
const instance = new LoadingConstructor({
    el: document.createElement('div')
})
const loading = {
    show () { // 显示方法
        instance.visible = true;
        instance.fullscreen = true;
        document.body.appendChild(instance.$el)
    },
    hide () { // 隐藏方法
        instance.visible = false;
    }
}

export default loading;


